Integrand size = 35, antiderivative size = 78 \[ \int \frac {\sqrt {a+a \cos (c+d x)} (A+B \cos (c+d x))}{\sqrt {\cos (c+d x)}} \, dx=\frac {\sqrt {a} (2 A+B) \arcsin \left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {a+a \cos (c+d x)}}\right )}{d}+\frac {a B \sqrt {\cos (c+d x)} \sin (c+d x)}{d \sqrt {a+a \cos (c+d x)}} \]
(2*A+B)*arcsin(sin(d*x+c)*a^(1/2)/(a+a*cos(d*x+c))^(1/2))*a^(1/2)/d+a*B*si n(d*x+c)*cos(d*x+c)^(1/2)/d/(a+a*cos(d*x+c))^(1/2)
Time = 0.11 (sec) , antiderivative size = 83, normalized size of antiderivative = 1.06 \[ \int \frac {\sqrt {a+a \cos (c+d x)} (A+B \cos (c+d x))}{\sqrt {\cos (c+d x)}} \, dx=\frac {\sqrt {a (1+\cos (c+d x))} \sec \left (\frac {1}{2} (c+d x)\right ) \left (\sqrt {2} (2 A+B) \arcsin \left (\sqrt {2} \sin \left (\frac {1}{2} (c+d x)\right )\right )+2 B \sqrt {\cos (c+d x)} \sin \left (\frac {1}{2} (c+d x)\right )\right )}{2 d} \]
(Sqrt[a*(1 + Cos[c + d*x])]*Sec[(c + d*x)/2]*(Sqrt[2]*(2*A + B)*ArcSin[Sqr t[2]*Sin[(c + d*x)/2]] + 2*B*Sqrt[Cos[c + d*x]]*Sin[(c + d*x)/2]))/(2*d)
Time = 0.42 (sec) , antiderivative size = 78, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {3042, 3460, 3042, 3253, 223}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {\sqrt {a \cos (c+d x)+a} (A+B \cos (c+d x))}{\sqrt {\cos (c+d x)}} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {\sqrt {a \sin \left (c+d x+\frac {\pi }{2}\right )+a} \left (A+B \sin \left (c+d x+\frac {\pi }{2}\right )\right )}{\sqrt {\sin \left (c+d x+\frac {\pi }{2}\right )}}dx\) |
\(\Big \downarrow \) 3460 |
\(\displaystyle \frac {1}{2} (2 A+B) \int \frac {\sqrt {\cos (c+d x) a+a}}{\sqrt {\cos (c+d x)}}dx+\frac {a B \sin (c+d x) \sqrt {\cos (c+d x)}}{d \sqrt {a \cos (c+d x)+a}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {1}{2} (2 A+B) \int \frac {\sqrt {\sin \left (c+d x+\frac {\pi }{2}\right ) a+a}}{\sqrt {\sin \left (c+d x+\frac {\pi }{2}\right )}}dx+\frac {a B \sin (c+d x) \sqrt {\cos (c+d x)}}{d \sqrt {a \cos (c+d x)+a}}\) |
\(\Big \downarrow \) 3253 |
\(\displaystyle \frac {a B \sin (c+d x) \sqrt {\cos (c+d x)}}{d \sqrt {a \cos (c+d x)+a}}-\frac {(2 A+B) \int \frac {1}{\sqrt {1-\frac {a \sin ^2(c+d x)}{\cos (c+d x) a+a}}}d\left (-\frac {a \sin (c+d x)}{\sqrt {\cos (c+d x) a+a}}\right )}{d}\) |
\(\Big \downarrow \) 223 |
\(\displaystyle \frac {\sqrt {a} (2 A+B) \arcsin \left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {a \cos (c+d x)+a}}\right )}{d}+\frac {a B \sin (c+d x) \sqrt {\cos (c+d x)}}{d \sqrt {a \cos (c+d x)+a}}\) |
(Sqrt[a]*(2*A + B)*ArcSin[(Sqrt[a]*Sin[c + d*x])/Sqrt[a + a*Cos[c + d*x]]] )/d + (a*B*Sqrt[Cos[c + d*x]]*Sin[c + d*x])/(d*Sqrt[a + a*Cos[c + d*x]])
3.2.69.3.1 Defintions of rubi rules used
Int[1/Sqrt[(a_) + (b_.)*(x_)^2], x_Symbol] :> Simp[ArcSin[Rt[-b, 2]*(x/Sqrt [a])]/Rt[-b, 2], x] /; FreeQ[{a, b}, x] && GtQ[a, 0] && NegQ[b]
Int[Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]]/Sqrt[(d_.)*sin[(e_.) + (f_.) *(x_)]], x_Symbol] :> Simp[-2/f Subst[Int[1/Sqrt[1 - x^2/a], x], x, b*(Co s[e + f*x]/Sqrt[a + b*Sin[e + f*x]])], x] /; FreeQ[{a, b, d, e, f}, x] && E qQ[a^2 - b^2, 0] && EqQ[d, a/b]
Int[Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]]*((A_.) + (B_.)*sin[(e_.) + ( f_.)*(x_)])*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Simp [-2*b*B*Cos[e + f*x]*((c + d*Sin[e + f*x])^(n + 1)/(d*f*(2*n + 3)*Sqrt[a + b*Sin[e + f*x]])), x] + Simp[(A*b*d*(2*n + 3) - B*(b*c - 2*a*d*(n + 1)))/(b *d*(2*n + 3)) Int[Sqrt[a + b*Sin[e + f*x]]*(c + d*Sin[e + f*x])^n, x], x] /; FreeQ[{a, b, c, d, e, f, A, B, n}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0] && !LtQ[n, -1]
Leaf count of result is larger than twice the leaf count of optimal. \(140\) vs. \(2(68)=136\).
Time = 18.24 (sec) , antiderivative size = 141, normalized size of antiderivative = 1.81
method | result | size |
default | \(\frac {\sqrt {a \left (1+\cos \left (d x +c \right )\right )}\, \left (\sqrt {\cos }\left (d x +c \right )\right ) \left (B \sin \left (d x +c \right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}+2 A \arctan \left (\tan \left (d x +c \right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\right )+B \arctan \left (\tan \left (d x +c \right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\right )\right )}{d \left (1+\cos \left (d x +c \right )\right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}}\) | \(141\) |
parts | \(\frac {2 A \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sqrt {a \left (1+\cos \left (d x +c \right )\right )}\, \arctan \left (\tan \left (d x +c \right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\right )}{d \sqrt {\cos \left (d x +c \right )}}+\frac {B \left (\sin \left (d x +c \right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}+\arctan \left (\tan \left (d x +c \right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\right )\right ) \left (\sqrt {\cos }\left (d x +c \right )\right ) \sqrt {a \left (1+\cos \left (d x +c \right )\right )}}{d \left (1+\cos \left (d x +c \right )\right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}}\) | \(182\) |
1/d*(a*(1+cos(d*x+c)))^(1/2)*cos(d*x+c)^(1/2)*(B*sin(d*x+c)*(cos(d*x+c)/(1 +cos(d*x+c)))^(1/2)+2*A*arctan(tan(d*x+c)*(cos(d*x+c)/(1+cos(d*x+c)))^(1/2 ))+B*arctan(tan(d*x+c)*(cos(d*x+c)/(1+cos(d*x+c)))^(1/2)))/(1+cos(d*x+c))/ (cos(d*x+c)/(1+cos(d*x+c)))^(1/2)
Time = 0.36 (sec) , antiderivative size = 97, normalized size of antiderivative = 1.24 \[ \int \frac {\sqrt {a+a \cos (c+d x)} (A+B \cos (c+d x))}{\sqrt {\cos (c+d x)}} \, dx=\frac {\sqrt {a \cos \left (d x + c\right ) + a} B \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) - {\left ({\left (2 \, A + B\right )} \cos \left (d x + c\right ) + 2 \, A + B\right )} \sqrt {a} \arctan \left (\frac {\sqrt {a \cos \left (d x + c\right ) + a} \sqrt {\cos \left (d x + c\right )}}{\sqrt {a} \sin \left (d x + c\right )}\right )}{d \cos \left (d x + c\right ) + d} \]
(sqrt(a*cos(d*x + c) + a)*B*sqrt(cos(d*x + c))*sin(d*x + c) - ((2*A + B)*c os(d*x + c) + 2*A + B)*sqrt(a)*arctan(sqrt(a*cos(d*x + c) + a)*sqrt(cos(d* x + c))/(sqrt(a)*sin(d*x + c))))/(d*cos(d*x + c) + d)
\[ \int \frac {\sqrt {a+a \cos (c+d x)} (A+B \cos (c+d x))}{\sqrt {\cos (c+d x)}} \, dx=\int \frac {\sqrt {a \left (\cos {\left (c + d x \right )} + 1\right )} \left (A + B \cos {\left (c + d x \right )}\right )}{\sqrt {\cos {\left (c + d x \right )}}}\, dx \]
Leaf count of result is larger than twice the leaf count of optimal. 939 vs. \(2 (68) = 136\).
Time = 0.46 (sec) , antiderivative size = 939, normalized size of antiderivative = 12.04 \[ \int \frac {\sqrt {a+a \cos (c+d x)} (A+B \cos (c+d x))}{\sqrt {\cos (c+d x)}} \, dx=\text {Too large to display} \]
1/4*(4*A*sqrt(a)*arctan2((cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos( 2*d*x + 2*c) + 1)^(1/4)*sin(1/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1)) + sin(d*x + c), (cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2* d*x + 2*c) + 1)^(1/4)*cos(1/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1)) + cos(d*x + c)) + (2*(cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos (2*d*x + 2*c) + 1)^(1/4)*(cos(1/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2* c) + 1))*sin(d*x + c) - (cos(d*x + c) - 1)*sin(1/2*arctan2(sin(2*d*x + 2*c ), cos(2*d*x + 2*c) + 1)))*sqrt(a) + sqrt(a)*(arctan2(-(cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)^(1/4)*(cos(1/2*arctan2(sin (2*d*x + 2*c), cos(2*d*x + 2*c) + 1))*sin(d*x + c) - cos(d*x + c)*sin(1/2* arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1))), (cos(2*d*x + 2*c)^2 + s in(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)^(1/4)*(cos(d*x + c)*cos(1/2*ar ctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1)) + sin(d*x + c)*sin(1/2*arct an2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1))) + 1) - arctan2(-(cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)^(1/4)*(cos(1/2*arct an2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1))*sin(d*x + c) - cos(d*x + c)*s in(1/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1))), (cos(2*d*x + 2*c )^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)^(1/4)*(cos(d*x + c)*cos (1/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1)) + sin(d*x + c)*sin(1 /2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1))) - 1) - arctan2((co...
Timed out. \[ \int \frac {\sqrt {a+a \cos (c+d x)} (A+B \cos (c+d x))}{\sqrt {\cos (c+d x)}} \, dx=\text {Timed out} \]
Timed out. \[ \int \frac {\sqrt {a+a \cos (c+d x)} (A+B \cos (c+d x))}{\sqrt {\cos (c+d x)}} \, dx=\int \frac {\left (A+B\,\cos \left (c+d\,x\right )\right )\,\sqrt {a+a\,\cos \left (c+d\,x\right )}}{\sqrt {\cos \left (c+d\,x\right )}} \,d x \]